<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="java.util.List"%>
<%@ page import="org.wei.rssreader.RssSourceBO"%>
<%@ page import="org.wei.rssreader.RssDAO"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>RSS订阅源管理</title>
<link href="../admin/common.css" rel="stylesheet" type="text/css" media="screen"/>
</head>
<body>
<h1>Rss订阅源管理</h1>
<%
	List<RssSourceBO> list = RssDAO.getAll();
%>

	<table class="data-list" width="100%" cellspacing="0" cellpadding="0">
	<tr class="caption">
		<td width="28">序号</td>
		<td width="28">id编码</td>
		<td width="28">url</td>
	</tr>
<%
	if (list.size() != 0){
		int i = 1;
		for(RssSourceBO bo : list){
%>
	<tr>
		<td><%=i++%></td>
		<td><%=bo.getId()%></td>
		<td><%=bo.getUrl()%></td>
	</tr>
<%
		}
	}
%>
	</table>
<h1>新增订阅源</h1>
<form action="../admin?entity=rsssource&option=add" method="post" name="rsssource_form">
		地址:<input type="text" name="rss_url" id="rss_url"></input>
		<input type="button" value="添加" onclick="submit()"></input>
	</form>
</body>
</html>